//
//  SetTableViewCell.m
//  WE
//
//  Created by apple on 15/11/24.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "SetTableViewCell.h"
#import "Size.h"
#import "ToolUtil.h"

@implementation SetTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.titleLbl = [[UILabel alloc] initWithFrame:CGRectMake(25, 20/2 *Height, 90, 20*Height)];
        _titleLbl.font = FONT(14);
        float arrow_h = 0.36 * 40 *Height ,arrow_w = arrow_h * 0.57 ,arrow_y = (40*Height - arrow_h)/2  , arrow_x = WindowWidth - 30;
      _arrowImage = [[UIImageView alloc] initWithFrame:CGRectMake(arrow_x, arrow_y, arrow_w , arrow_h)];
        _arrowImage.image = [UIImage imageNamed:@"ico_arrow"];
        
        CGFloat x = [ToolUtil autoWidth:@"13323829533" width:0 height:20 num:14];
        _number = [[UILabel alloc] initWithFrame:CGRectMake(WindowWidth - 40-x, 0, x, 40*Height)];
        
        _number.font = FONT(14);
        
       
        [self.contentView addSubview:_titleLbl];
        [self.contentView addSubview:_arrowImage];
        [self.contentView addSubview:_number];
        
    }
    
    
    return self;
}

@end
